package dryven.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import dryven.model.validation.validators.DefaultValidator;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD,ElementType.METHOD})
public @interface Validator {
	Class<? extends dryven.model.validation.Validator> value() default DefaultValidator.class;
	boolean required() default false;
	int maxLength() default 0;
	int minLength() default 0;
}
